#include "sudokuthread.h"
#include "global/globalvar.h"
#include <QDebug>

SudokuThread::SudokuThread(QObject *parent):
    QThread(parent)
{
}

SudokuThread::~SudokuThread()
{
}

void SudokuThread::run()
{
    mutex.lock();

    globalvar::m_sudoku.create();
    globalvar::m_sudoku.dig(globalvar::iCurlevel);
    globalvar::m_logic.init();

    mutex.unlock();

    emit SudokuThreadOver();
}
